// pages/gb/gb.js
Page({
  data: {
    active:0,
    currentTab:0
  },
  showBanner: function(e){
    var page = this;
    var id = e.target.id;
    if(this.data.currentTab == id){
        return false;
    } else{
        page.setData({
            currentTab: id
        });
    }
    page.setData({
        active: id
    });
    // 打印点击图片的对应id
    console.log(id)
  },
  next: function(){
    wx.navigateTo({
      url: '/pages/gy/gy',
    })
  }
})